/**
 * Created by 81052 on 2018/4/7.
 */
public class Dome07 {
    public static void main(String[] args) {
        byte d[]="java你好".getBytes();
        System.out.println("数组d的长度是:"+d.length);
        String s =new String (d,6,2);
        System.out.println(s);
        s=new String(d,0,6);
        System.out.println(s);
    }
}
